package com.zdd.ehe.service.impl;

import com.zdd.ehe.entity.Picture;
import com.zdd.ehe.mapper.PictureMapper;
import com.zdd.ehe.service.IPictureService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-18
 */
@Service
public class PictureServiceImpl extends ServiceImpl<PictureMapper, Picture> implements IPictureService {
    @Resource
    private PictureMapper pictureMapper;

    /**
     * 插入图片
     *
     * @param picture
     * @return
     */
    @Override
    public int insert(Picture picture) {
        int result = pictureMapper.insert(picture);
        return result;
    }
}
